package com.nanhai.buddhist.college.module.study.controller.admin.classclockrecord.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

import static com.nanhai.buddhist.college.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * @author AKai
 * @date 2022/9/14
 */
@Data
public class ClockRecordUserReqVO {
    @ApiModelProperty("查询时间")
    @NotNull(message = "查询时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date findTime;

    @ApiModelProperty(value = "课程ID", required = true)
    @NotNull(message = "课程ID不能为空")
    private String subjectId;

    @ApiModelProperty(value = "打卡角色")
    @NotNull(message = "打卡角色不能为空")
    private Integer clockRole;

    @ApiModelProperty(value = "打卡人id")
    @NotBlank(message = "打卡人id不能为空")
    private String clockUserId;

    @ApiModelProperty(value = "课程时间id")
    private Integer studyTimeId;

    @ApiModelProperty(value = "打卡结果（1正常;2异常）")
    private String clockStatus;
}
